package com.haiyou.dc.es.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 房屋信息表
 *
 * @author Administrator
 * @date 2020-01-20 16:11:33
 */
@ApiModel(value = "房屋信息表")
@Data
@Accessors(chain = true)
@Table(name = "es_house")
public class EsHouse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * house唯一标识
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "house唯一标识", name = "id")
    private Integer id;

    /**
     * title
     */
    @Column(name = "title")
    @ApiModelProperty(value = "title", name = "title")
    private String title;

    /**
     * 价格
     */
    @Column(name = "price")
    @ApiModelProperty(value = "价格", name = "price")
    private Integer price;

    /**
     * 面积
     */
    @Column(name = "area")
    @ApiModelProperty(value = "面积", name = "area")
    private Integer area;

    /**
     * 卧室数量
     */
    @Column(name = "room")
    @ApiModelProperty(value = "卧室数量", name = "room")
    private Integer room;

    /**
     * 楼层
     */
    @Column(name = "floor")
    @ApiModelProperty(value = "楼层", name = "floor")
    private Integer floor;

    /**
     * 总楼层
     */
    @Column(name = "total_floor")
    @ApiModelProperty(value = "总楼层", name = "totalFloor")
    private Integer totalFloor;

    /**
     * 被看次数
     */
    @Column(name = "watch_times")
    @ApiModelProperty(value = "被看次数", name = "watchTimes")
    private Integer watchTimes;

    /**
     * 建立年限
     */
    @Column(name = "build_year")
    @ApiModelProperty(value = "建立年限", name = "buildYear")
    private Integer buildYear;

    /**
     * 房屋状态 0-未审核 1-审核通过 2-已出租 3-逻辑删除
     */
    @Column(name = "status")
    @ApiModelProperty(value = "房屋状态 0-未审核 1-审核通过 2-已出租 3-逻辑删除", name = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    /**
     * 最近数据更新时间
     */
    @Column(name = "last_update_time")
    @ApiModelProperty(value = "最近数据更新时间", name = "lastUpdateTime")
    private Date lastUpdateTime;

    /**
     * 城市标记缩写 如 北京bj
     */
    @Column(name = "city_en_name")
    @ApiModelProperty(value = "城市标记缩写 如 北京bj", name = "cityEnName")
    private String cityEnName;

    /**
     * 地区英文简写 如昌平区 cpq
     */
    @Column(name = "region_en_name")
    @ApiModelProperty(value = "地区英文简写 如昌平区 cpq", name = "regionEnName")
    private String regionEnName;

    /**
     * 封面
     */
    @Column(name = "cover")
    @ApiModelProperty(value = "封面", name = "cover")
    private String cover;

    /**
     * 房屋朝向
     */
    @Column(name = "direction")
    @ApiModelProperty(value = "房屋朝向", name = "direction")
    private Integer direction;

    /**
     * 距地铁距离 默认-1 附近无地铁
     */
    @Column(name = "distance_to_subway")
    @ApiModelProperty(value = "距地铁距离 默认-1 附近无地铁", name = "distanceToSubway")
    private Integer distanceToSubway;

    /**
     * 客厅数量
     */
    @Column(name = "parlour")
    @ApiModelProperty(value = "客厅数量", name = "parlour")
    private Integer parlour;

    /**
     * 所在小区
     */
    @Column(name = "district")
    @ApiModelProperty(value = "所在小区", name = "district")
    private String district;

    /**
     * 所属管理员id
     */
    @Column(name = "admin_id")
    @ApiModelProperty(value = "所属管理员id", name = "adminId")
    private Integer adminId;

    /**
     * bathroom
     */
    @Column(name = "bathroom")
    @ApiModelProperty(value = "bathroom", name = "bathroom")
    private Integer bathroom;

    /**
     * 街道
     */
    @Column(name = "street")
    @ApiModelProperty(value = "街道", name = "street")
    private String street;

}
